package org.zfes.snowier.cloud.zbss.cms.model.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsModel extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsModel() {}
	public CmsModel(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="名称不能为空")
	@javax.validation.constraints.NotBlank(message="名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="名称长度不能大于100")
	  private java.lang.String name;
 
	@javax.validation.constraints.NotNull(message="路径不能为空")
	@javax.validation.constraints.NotBlank(message="路径不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="路径长度不能大于100")
	  private java.lang.String path;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=30,message="栏目模板前缀长度不能大于30")
	  private java.lang.String tplColumnPrefix;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=30,message="内容模板前缀长度不能大于30")
	  private java.lang.String tplContentPrefix;
 
	@javax.validation.constraints.NotNull(message="栏目标题图宽度不能为空")
	  private java.lang.Integer titleImgWidth;
 
	@javax.validation.constraints.NotNull(message="栏目标题图高度不能为空")
	  private java.lang.Integer titleImgHeight;
 
	@javax.validation.constraints.NotNull(message="栏目内容图宽度不能为空")
	  private java.lang.Integer contentImgWidth;
 
	@javax.validation.constraints.NotNull(message="栏目内容图高度不能为空")
	  private java.lang.Integer contentImgHeight;
 
	@javax.validation.constraints.NotNull(message="排列顺序不能为空")
	  private java.lang.Integer sortNum;
 
	@javax.validation.constraints.NotNull(message="是否有内容不能为空")
	  private java.lang.Byte hasContent;
 
	@javax.validation.constraints.NotNull(message="是否禁用不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="是否默认模型不能为空")
	  private java.lang.Byte isDefault;
 
	@javax.validation.constraints.NotNull(message="是否全站模型不能为空")
	  private java.lang.Byte isGlobal;
 
	
	  private java.lang.Long siteId;
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	
	//<-------------------------------------------->
	public CmsModel setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public CmsModel setPath(java.lang.String path){
		this.path=path==null?null:path.trim();
	 return this;
	}
	public java.lang.String getPath(){
		return this.path;
	}
	public CmsModel setTplColumnPrefix(java.lang.String tplColumnPrefix){
		this.tplColumnPrefix=tplColumnPrefix==null?null:tplColumnPrefix.trim();
	 return this;
	}
	public java.lang.String getTplColumnPrefix(){
		return this.tplColumnPrefix;
	}
	public CmsModel setTplContentPrefix(java.lang.String tplContentPrefix){
		this.tplContentPrefix=tplContentPrefix==null?null:tplContentPrefix.trim();
	 return this;
	}
	public java.lang.String getTplContentPrefix(){
		return this.tplContentPrefix;
	}
	public CmsModel setTitleImgWidth(java.lang.Integer titleImgWidth){
	 this.titleImgWidth=titleImgWidth;
	 return this;
	}
	public java.lang.Integer getTitleImgWidth(){
		return this.titleImgWidth;
	}
	public CmsModel setTitleImgHeight(java.lang.Integer titleImgHeight){
	 this.titleImgHeight=titleImgHeight;
	 return this;
	}
	public java.lang.Integer getTitleImgHeight(){
		return this.titleImgHeight;
	}
	public CmsModel setContentImgWidth(java.lang.Integer contentImgWidth){
	 this.contentImgWidth=contentImgWidth;
	 return this;
	}
	public java.lang.Integer getContentImgWidth(){
		return this.contentImgWidth;
	}
	public CmsModel setContentImgHeight(java.lang.Integer contentImgHeight){
	 this.contentImgHeight=contentImgHeight;
	 return this;
	}
	public java.lang.Integer getContentImgHeight(){
		return this.contentImgHeight;
	}
	public CmsModel setSortNum(java.lang.Integer sortNum){
	 this.sortNum=sortNum;
	 return this;
	}
	public java.lang.Integer getSortNum(){
		return this.sortNum;
	}
	public CmsModel setHasContent(java.lang.Byte hasContent){
	 this.hasContent=hasContent;
	 return this;
	}
	public java.lang.Byte getHasContent(){
		return this.hasContent;
	}
	public CmsModel setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsModel setIsDefault(java.lang.Byte isDefault){
	 this.isDefault=isDefault;
	 return this;
	}
	public java.lang.Byte getIsDefault(){
		return this.isDefault;
	}
	public CmsModel setIsGlobal(java.lang.Byte isGlobal){
	 this.isGlobal=isGlobal;
	 return this;
	}
	public java.lang.Byte getIsGlobal(){
		return this.isGlobal;
	}
	public CmsModel setSiteId(java.lang.Long siteId){
	 this.siteId=siteId;
	 return this;
	}
	public java.lang.Long getSiteId(){
		return this.siteId;
	}
	public CmsModel setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsModel setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}

}
